package com.starlight.easybuyprictice.entity.brief;

import java.util.List;

/**
 * @Author yfy2001
 * @date 2022/11/29 12:37
 */
public class NestedCategory {
    private String name;
    private Integer catId;
    private Integer parentId;
    private List<NestedCategory> childCategories;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCatId() {
        return catId;
    }

    public void setCatId(Integer catId) {
        this.catId = catId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<NestedCategory> getChildCategories() {
        return childCategories;
    }

    public void setChildCategories(List<NestedCategory> childCategories) {
        this.childCategories = childCategories;
    }

    @Override
    public String toString() {
        return "NestedOCategory [name="+ name + ", cat_id="+ catId + ",parent_id=" + parentId + ", childCategories="
                +childCategories + "]";

    }
}